import QuestionMaintenance from "containers/help-center-admin/question-maintenance/question-maintenance"
import QuestionMaintenanceSort from "containers/help-center-admin/question-maintenance/question-maintenance-sort"
import QuestionMaintenanceAdd from "containers/help-center-admin/question-maintenance/question-maintenance-edit"
import QuestionMaintenanceEdit from "containers/help-center-admin/question-maintenance/question-maintenance-edit"
import QuestionMaintenanceDetail from "containers/help-center-admin/question-maintenance/question-maintenance-detail"

//帮助中心
const helpCenterAdmin = {
  key: 'help-center-admin',
  icon: 'line-chart',
  admin: true,
  tenant: true,
  // 问题维护
  subMenu: [
    {
      key: 'question-maintenance',
      url: '/main/help-center-admin/question-maintenance',
      components: QuestionMaintenance,
      icon: 'line-chart',
      parent: 'help-center-admin',
      children: [
        { //排序分类
          key: 'question-maintenance-sort',
          url: '/main/help-center-admin/question-maintenance/question-maintenance-sort',
          components: QuestionMaintenanceSort,
          parent: 'question-maintenance'
        },
        { //新增问题
          key: 'question-maintenance-add',
          url: '/main/help-center-admin/question-maintenance/question-maintenance-add',
          components: QuestionMaintenanceAdd,
          parent: 'question-maintenance'
        },
        { //编辑问题
          key: 'question-maintenance-edit',
          url: '/main/help-center-admin/question-maintenance/question-maintenance-detail/question-maintenance-edit',
          components: QuestionMaintenanceEdit,
          parent: 'question-maintenance-detail'
        },
        { //问题详情
          key: 'question-maintenance-detail',
          url: '/main/help-center-admin/question-maintenance/question-maintenance-detail',
          components: QuestionMaintenanceDetail,
          parent: 'question-maintenance'
        },
      ],
    },
  ]
};

export default helpCenterAdmin

